From: Guido Günther Date: Sun, 4 Jan 2026 12:07:24 +0000 (+0100) Subject: mixer-control: Print error when we fail to update source or sink port X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2^2^2^2^2~18 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=532bbc94fe25c8ab7626a68536234e77f361b0ce;p=gnome-shell.git mixer-control: Print error when we fail to update source or sink port Since we allow for port lookups to fail we should check if the update worked. Signed-off-by: Guido Günther Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31 Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34 Bug-Debian: https://bugs.debian.org/1126514 Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4 Gbp-Pq: Topic libgvc Gbp-Pq: Name mixer-control-Print-error-when-we-fail-to-update-source-o.patch --- diff --git a/subprojects/gvc/gvc-mixer-control.c b/subprojects/gvc/gvc-mixer-control.c index f41c2c141..15eb5e8f8 100644 --- a/subprojects/gvc/gvc-mixer-control.c +++ b/subprojects/gvc/gvc-mixer-control.c @@ -1525,7 +1525,8 @@ update_sink (GvcMixerControl *control, if (active_port == NULL || g_strcmp0 (active_port->port, info->active_port->name) != 0) { g_debug ("update sink - apparently a port update"); - gvc_mixer_stream_set_port (stream, info->active_port->name); + if (!gvc_mixer_stream_set_port (stream, info->active_port->name)) + g_warning ("Port update to of %d '%s' failed", info->index, info->active_port->name); } } } @@ -1654,7 +1655,8 @@ update_source (GvcMixerControl *control, if (active_port == NULL || g_strcmp0 (active_port->port, info->active_port->name) != 0) { g_debug ("update source - apparently a port update"); - gvc_mixer_stream_set_port (stream, info->active_port->name); + if (!gvc_mixer_stream_set_port (stream, info->active_port->name)) + g_warning ("Port update to of %d '%s' failed", info->index, info->active_port->name); } } }